<template></template>
<script setup>
import usehomeStore from "@/store/modules/home/index";
import routerInterception from "@/router-interception.js";
import { getItem, setItem } from "@/utils/localStorage.js";

const homeStore = usehomeStore();

// 路由守卫
routerInterception();

onLaunch((route) => {
  console.log("App Launch--------------------------------------------------");
  homeStore.updateMenuInfo();

  setItem("toRouter", route.path);

  if (route.path == "pages/index/index") {
    homeStore.updateTabbarIndex(0);
  } else if (route.path == "pages/issue/index") {
    homeStore.updateTabbarIndex(1);
  } else if (route.path == "pages/user/index") {
    homeStore.updateTabbarIndex(2);
  }
});
onShow(() => {});
onHide(() => {});
</script>
<script>
export default {
  name: "",
};
</script>

<style lang="scss">
@import "uview-plus/index.scss";
/*每个页面公共css */
@font-face {
  font-family: "iconfont"; /* Project id 4677107 */
  src: url("//at.alicdn.com/t/c/font_4677107_u7sqq24n3s.woff2?t=1725701561822")
      format("woff2"),
    url("//at.alicdn.com/t/c/font_4677107_u7sqq24n3s.woff?t=1725701561822")
      format("woff"),
    url("//at.alicdn.com/t/c/font_4677107_u7sqq24n3s.ttf?t=1725701561822")
      format("truetype");
}
.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-a-bianzu71:before {
  content: "\e674";
}

.icon-a-weibiaoti-1_huaban1fuben31:before {
  content: "\e606";
}

.icon-women:before {
  content: "\e635";
}

.icon-icon-test:before {
  content: "\e636";
}

.icon-wenben:before {
  content: "\e60d";
}

.icon-zhanshipingtai:before {
  content: "\e9e9";
}

.icon-winner:before {
  content: "\e8f5";
}

// @import "@/uni_modules/uview-plus/index.scss";
</style>
